Component({
  data: {
    selected: 0,
    "selectedColor": "#6281E8",
    "color": "#353535",
    list: [{
        "pagePath": "pages/work/index",
        "text": "我的工作",
        "iconPath": "/images/tabbar/work.png",
        "selectedIconPath": "/images/tabbar/worka.png"
      },
      {
        "pagePath": "pages/my/index",
        "text": "个人中心",
        "iconPath": "/images/tabbar/user.png",
        "selectedIconPath": "/images/tabbar/usera.png"
      },
      {
        "pagePath": "pages/month/index",
        "text": "包月缴费",
        "iconPath": "/images/tabbar/month.png",
        "selectedIconPath": "/images/tabbar/montha.png"
      },
      {
        "pagePath": "pages/nopay/index",
        "text": "未支付订单",
        "iconPath": "/images/tabbar/nopay.png",
        "selectedIconPath": "/images/tabbar/nopaya.png"
      },
      {
        "pagePath": "pages/ispay/index",
        "text": "已支付订单",
        "iconPath": "/images/tabbar/ispay.png",
        "selectedIconPath": "/images/tabbar/ispaya.png"
      }, {
        "pagePath": "/pages/record/index",
        "text": "违章记录",
        "iconPath": "/images/tabbar/record.png",
        "selectedIconPath": "/images/tabbar/recorda.png"
      },
      {
        "pagePath": "/pages/evidence/index",
        "text": "违章取证",
        "iconPath": "/images/tabbar/evidence.png",
        "selectedIconPath": "/images/tabbar/evidencea.png"
      }
    ]
  },
  attached() {},
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      console.log(url)
      getApp().globalData.tollcollectorpaymentorderid = ''
      wx.switchTab({
        url
      })
      this.setData({
        selected: data.index
      })
    }
  }
})